package com.ruibang.glass.material.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 调拨管理关联物品表
 * </p>
 *
 * @author mameng
 * @since 2024-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("g_material_allocation_item")
@ApiModel(description = "调拨管理关联物品表")
public class MaterialAllocationItem extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "调拨id")
    private String allocationId;

    @ApiModelProperty(value = "物品名称")
    private String itemName;

    @ApiModelProperty(value = "物品Id")
    private String itemId;

    @ApiModelProperty(value = "物品编码")
    private String itemCode;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "条形码编号")
    private String barcodeNumber;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

    @ApiModelProperty(value = "单位")
    private String unitPrice;

    @ApiModelProperty(value = "库位")
    private String storageLocation;

    @ApiModelProperty(value = "库位Id")
    private String warehouseId;

    @ApiModelProperty(value = "物料序号")
    private String itemNumber;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime finishDate;

    @ApiModelProperty(value = "移出Id")
    private String leaveWarehouseId;

    @ApiModelProperty(value = "移入Id")
    private String inWarehouseId;


}
